package com.zjs.jsp.fdservice.service.amap;

import com.zjs.jsp.domain.amap.Address;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 高德坐标服务
 *
 * @author 李文
 * @create 2018-07-13 14:39
 **/
@FeignClient(name = "geo",url = "https://restapi.amap.com")
public interface GeoCodingService
{
    @GetMapping("/v3/geocode/geo?address={address}&output=json&key={key}")
    Address getGeocode(@PathVariable("address") String address, @PathVariable("key") String key);
}
